package com.example.demo.controller;


import com.example.demo.aspect.MyAspect;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@RequestMapping("/test")
@RestController
public class TestController {
    @RequestMapping("/t1")
    public String t1() {
        log.info("t1");
        return "t1";
    }

    @RequestMapping("/t2")
    public Boolean t2() {
        log.info("t2");
        return true;
    }

    @MyAspect
    @RequestMapping("/t3")
    public Integer t3() {
        log.info("t3");
        return 1;
    }

}
